import request from '@/utils/request'

// 查询客户推广列表
export function listCrmCompanyTask(query) {
  return request({
    url: '/net/crmCompanyTask/list',
    method: 'get',
    params: query
  })
}

// 查询客户推广详细
export function getCrmCompanyTask(id) {
  return request({
    url: '/net/crmCompanyTask/' + id,
    method: 'get'
  })
}

// 新增客户推广
export function addCrmCompanyTask(data) {
  return request({
    url: '/net/crmCompanyTask',
    method: 'post',
    data: data
  })
}

// 修改客户推广
export function updateCrmCompanyTask(data) {
  return request({
    url: '/net/crmCompanyTask',
    method: 'put',
    data: data
  })
}

// 删除客户推广
export function delCrmCompanyTask(id) {
  return request({
    url: '/net/crmCompanyTask/' + id,
    method: 'delete'
  })
}
